// 商户模块
import { defineStore } from 'pinia'
import { setSessionStoragePinia } from '@/utils/localstorage'

export const merchantStore = defineStore({
  id: 'merchantStore',
  state: () => {
    return {
      merchantType: [], //商户类别
      merchantCurrent: [] //商户币种
    }
  },
  getters: {},
  actions: {
    // 获取商户类别
    async getMerchantType() {},
    // 修改商户类别
    setMerchantType(list: any) {
      this.merchantType = list
    },
    // 获取商户币种
    async getMerchantCurrency() {},
    // 修改商户币种
    setMerchantCurrency(list: any) {
      this.merchantCurrent = list
    }
  }
})

// 持久化
setSessionStoragePinia(merchantStore, 'merchantStore')
